package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.entity.system.SysRole;

import java.util.List;

/**
 * @author MikeCoder
 * @create 2023-12-0421:09
 * @description:
 * @verson:
 */

public interface SysRoleMapper {
    List<SysRole> selectByRoleName(String roleName);

    Integer insert(SysRole sysRole);

    SysRole selectSysRoleById(Integer id);

    Integer update(SysRole sysRole);

    Integer delete(Integer id);

    List<SysRole> selectAllRole();

    List<Integer> selectUserRoleIds(Integer id);

    List<Long> selectMenuIdByRoleId(Long roleId);
}
